package cn.fl.sue.service;

import cmm.comm.facade.upload.condition.SysUlDatCfgQueryCondition;
import cmm.mid.core.framework.page.KeyValueVO;
import cmm.mid.core.framework.page.Pager;
import cn.cmm.base.framework.exception.BaseException;
import cn.fl.sue.condition.SueBscInfoQC;
import cn.fl.sue.condition.SueFileInfoQC;
import cn.fl.sue.vo.SueApplyViewDtlVO;
import cn.fl.sue.vo.SueBscInfoVO;
import cn.fl.sue.vo.SueFileVO;
import cn.fl.system.vo.SysUlDatCfgDtlVO;
import fl.flow.facade.flow.dto.FlowStartParamsDTO;

import java.util.List;

/**
 * @Description: 诉讼信息表 客户端服务层接口
 * @Description: 持久层方法名称前缀：新增：insert* 删除：delete* 修改：update* 批量：batch* 查询对象：select* get* find* 查询集合：select*
 * @Description: 业务层方法名称前缀：新增：add* 删除：remove* 修改：modify* 查询对象：select* get* 批量：batch* 查询集合：search*
 */
public interface ISueBscInfoService {

    /**
     * 获取唯一对象
     *
     * @param id 主键
     * @return 对象DTO
     */
    public SueBscInfoVO selectById(Long id) throws BaseException;

    /**
     * 新增
     *
     * @param entity
     * @return
     */
    public Long add(SueBscInfoVO entity) throws BaseException;

    /**
     * 删除
     *
     * @param id
     * @return
     */
    public boolean removeById(Long id) throws BaseException;

    /**
     * 删除
     *
     * @param ids
     * @return
     */
    public boolean removeByIds(List<Long> ids) throws BaseException;

    /**
     * 修改
     *
     * @param entity
     * @return
     */
    public boolean modify(SueBscInfoVO entity) throws BaseException;

    /**
     * 分页查询所有
     *
     * @param page
     * @return
     */
    public Pager searchListPage(Pager page) throws BaseException;

    /**
     * 查询*数据字典
     *
     * @param groupCd 组代码
     * @return List<KeyValueVO>
     */
    public List<KeyValueVO> searchCdList(String groupCd) throws BaseException;

    /**
     * 通过配置编号查询诉讼文件的配置信息
     *
     * @param condition
     * @return
     */
    public List<SueFileVO> searchSueFileCfgDtlAndFileCfg(SueFileInfoQC condition) throws BaseException;

    /**
     * 根据序列名称获取诉讼信息序列
     *
     * @return
     */
    public Long getSueBscInfoSeq() throws BaseException;

    /**
     * 查询全部的诉讼记录
     *
     * @param condition
     * @return
     */
    public List<SueBscInfoVO> searchList(SueBscInfoQC condition) throws BaseException;

    /**
     * 根据业务主键id和表名查询支付表明细信息
     *
     * @param dataId
     * @param tableNm
     * @return
     * @throws BaseException
     */
    public List<SueApplyViewDtlVO> selectPaySchList(Long dataId, String tableNm) throws BaseException;

    /**
     * 发起结案审批流程
     * @param flowStartParamsDTO
     * @throws BaseException
     */
    public void startCaseFinishedFlow(FlowStartParamsDTO flowStartParamsDTO) throws BaseException;
}
